package com.trans.file;

import java.io.FileNotFoundException;
import java.io.FileReader;

import com.alibaba.fastjson.JSONReader;
import com.trans.model.Model1;

public class DemoJson {
	public void DealWiht() {
		JSONReader reader;
		try {
			FileReader fileReader = new FileReader(
					"D:\\TempFiles\\IntellijIdea\\Pisum\\FastJson\\src\\main\\java\\com\\trans\\file\\String.txt");
			reader = new JSONReader(fileReader);

			reader.startObject();
			while (reader.hasNext()) {
				String key = reader.readString();
				Model1 orderList = reader.readObject(Model1.class);

			}
			reader.endObject();
			reader.close();
		} catch (FileNotFoundException e) {
			e.printStackTrace();
		}
	}
}
